import request from '@/utils/request'

export function getTask(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Task.GetTaskList',
    method: 'post',
    data,
  })
}

export function addTask(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Task.AddTaskConfig',
    method: 'post',
    data,
  })
}

export function editTask(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Task.EditTaskConfig',
    method: 'post',
    data,
  })
}

export function deleteTask(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Task.RemoveTaskConfig',
    method: 'post',
    data,
  })
}
